A Calculus for Amortized Expected Runtimes

نویسندگان

چکیده

We develop a weakest-precondition-style calculus à la Dijkstra for reasoning about amortized expected runtimes of randomized algorithms with access to dynamic memory — the aert calculus. Our is truly quantitative, i.e. instead Boolean valued predicates, it manipulates real-valued functions. En route calculus, we study ert Kaminski et al. [2018] extended by capabilities handling memory, thus enabling compositional and local data structures . This extension employs runtime separation logic , which has been foreshadowed Matheja [2020] then implemented in Isabelle/HOL Haslbeck [2021]. In addition Haslbeck’s results, further prove soundness so-extended respect an operational Markov decision process model featuring countably-branching nondeterminism, provide extensive intuitive explanations, proof rules logic-style verification upper bounds on runtimes. Finally, build so-called potential method analysis into obtaining Soundness obtained from some probabilistic form telescoping. Since one needs be able handle changes can principle both positive or negative, essentially capable certain signed random variables. A particularly pleasing feature our solution that, unlike e.g. Kozen [1985], obtain loop rule variables, furthermore, Katoen [2017], makes do without need involved technical machinery keeping track integrability present case studies, including formal delete-insert-find-any set structure [Brodal 1996], yields constant per operation, whereas no deterministic algorithm achieve this.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Pervasive Parallelism for Managed Runtimes

Modern programming languages like C# or Java are executed in a managed runtime and offer support for concurrency at a high level of abstraction. However, high-level parallel abstractions (e.g., thread pools) can merely be provided as a library since the underlying runtime (including the dynamic compiler) is aware of only a small set of low-level parallel abstractions. In this paper we discuss a...

متن کامل

A Tale of Three Runtimes

This contribution discusses the automatic generation of event-driven, tuple-space based programs for task-oriented execution models from a sequential C specification. We developed a hierarchical mapping solution using auto-parallelizing compiler technology to target three different runtimes relying on event-driven tasks (EDTs). Our solution benefits from the important observation that loop type...

متن کامل

Fully Dynamic Connectivity in O(log n(log log n)2) Amortized Expected Time

Dynamic connectivity is one of the most fundamental problems in dynamic graph algorithms. We present a new randomized dynamic connectivity structure with O(log n(log log n)) amortized expected update time and O(log n/ log log log n) query time, which comes within an O((log log n)) factor of a lower bound due to Pǎtraşcu and Demaine. The new structure is based on a dynamic connectivity algorithm...

متن کامل

A Tight Amortized Bound for Path Reversal

Let T be a rooted tree. A path reversal at a node x in T is performed by traversing the path from x to the tree root r and making x the parent of each node on the path other than X. Thus x becomes the new tree root. (See Fig. 1). The cost of the reversal is the number of edges on the path reversed. Path reversal is a variant of the standard path compression algorithm for maintaining disjoint se...

متن کامل

CoreTSAR: Task Scheduling for Accelerator-aware Runtimes

Heterogeneous supercomputers that incorporate computational accelerators such as GPUs are increasingly popular due to their high peak performance, energy efficiency and comparatively low cost. Unfortunately, the programming models and frameworks designed to extract performance from all computational units still lack the flexibility of their CPU-only counterparts. Accelerated OpenMP improves thi...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: Proceedings of the ACM on programming languages

سال: 2023

ISSN: ['2475-1421']

DOI: https://doi.org/10.1145/3571260